﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TaiwuModFramework.Common.Info {
    [Serializable]
    public class MsgInfo {
        public enum MType : sbyte {
            Request, Response, Notice
        }

        public long mId;
        public sbyte mIndex;
        public long mTick;
        public MType mType;
        public object data;

        public MsgInfo() { }

        public MsgInfo(long mid, sbyte mIndex, long mTick, object data) : this(mid, mIndex, mTick, MType.Request, data) {

        }

        public MsgInfo(long mId, sbyte mIndex, long mTick, MType mType, object data) {
            this.mId = mId;
            this.mIndex = mIndex;
            this.mTick = mTick;
            this.mType = mType;
            this.data = data;
        }
    }
}
